
import React, { Component } from 'react'
//引入中间人文件夹
import {moneyContext} from '../context/index.jsx' 
export default class Sun extends Component {
    //static类组件的静态属性
    static contextType = moneyContext
    render() {
        return (
            <div>
                孙子组件----------
                {this.context}
            </div>
        )
    }
}